package com.android.hello;

import android.app.Activity; 
import android.os.Bundle; 
import android.view.GestureDetector; 
import android.view.MotionEvent; 

public class HelloAndroidActivity extends Activity { 

    private GestureDetector mGestureDetector; 

    @Override 
    public void onCreate(Bundle savedInstanceState) { 
        super.onCreate(savedInstanceState); 
        setContentView(R.layout.main); 
        mGestureDetector = new GestureDetector(this, new MyGestureListener(this)); 
    } 


    @Override 
    public boolean onTouchEvent(MotionEvent event) { 
        return mGestureDetector.onTouchEvent(event); 
    } 
} 
